import request from '@/utils/request'

// 获取票号模板列表
export function getTicketStyleList(params) {
  return request({
    url: '/qbs/ticketStyle/list',
    method: 'get',
    params
  })
}
// 新增票号模板
export function addTicketStyleList(data) {
  return request({
    url: '/qbs/ticketStyle/save',
    method: 'post',
    data
  })
}
// 更新票号模板
export function updateTicketStyleList(data) {
  return request({
    url: '/qbs/ticketStyle/update',
    method: 'put',
    data
  })
}
// 删除票号模板
export function deleteTicketStyle(id) {
  return request({
    url: `/qbs/ticketStyle/remove/${id}`,
    method: 'DELETE'
  })
}
// 获取票号模板详情
export function getTicketStyleDetails(id) {
  return request({
    url: `/qbs/ticketStyle/${id}`,
    method: 'get'
  })
}


